function [g, h] = constraintMain(x)
% constraintMain
% The constraint functions to go with the project objective function

fieldLength = x(1);
fieldWidth  = x(2);
panelLength = x(3);
panelWidth  = x(4);
panelSpace  = x(5);

n = 0.0033; % Reduction constant
GR = 20000; % Gear ratio for reduction
tauM = 5.0; % Motor torque (N-m)

g(1) = 117.25093/(tauM*GR*n)*panelLength*panelWidth^2-1;
%g(2) = fieldLength/200 - 1;
%g(3) = -fieldLength;
%g(4) = fieldWidth/200 - 1;
%g(5) = -fieldWidth;
%g(6) = -panelLength;
%g(7) = -panelWidth;
%g(8) = panelLength - fieldLength;
%g(9) = panelLength - fieldWidth;
%g(10) = panelWidth - fieldLength;
%g(11) = panelWidth - fieldWidth;
%g(12) = -panelSpace;

h = [];